package com.meiyou.mapper;

import com.meiyou.pojo.MeiyouThir;
import com.meiyou.pojo.MeiyouUser;
import com.meiyou.pojo.MeiyouUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface MeiyouUserMapper {
	int selectCountByphone(String phone);
	String selectUcountByphone(String phone);
	int insertUser(MeiyouUser user);
	MeiyouUser selUserinfoByphone(String phone);
	List<MeiyouUser> selPwdByUcount(String ucount);
	
	MeiyouThir getcountByWx(String openid);
	
	int getcountByalipay(String alipayid);
	
    int countByExample(MeiyouUserExample example);

    int deleteByExample(MeiyouUserExample example);

    int deleteByPrimaryKey(Integer uId);
    List<MeiyouUser> selectUserinfo(String uphone,String upwd);

    int insert(MeiyouUser record);

    int insertSelective(MeiyouUser record);
    MeiyouUser selectByuccount(String uccount);

    List<MeiyouUser> selectByExample(MeiyouUserExample example);

    MeiyouUser selectByPrimaryKey(Integer uId);

    int updateByExampleSelective(@Param("record") MeiyouUser record, @Param("example") MeiyouUserExample example);

    int updateByExample(@Param("record") MeiyouUser record, @Param("example") MeiyouUserExample example);

    int updateByPrimaryKeySelective(MeiyouUser record);

    int updateByPrimaryKey(MeiyouUser record);
    
    int updataUserInfo(MeiyouUser user);
    int updateUserimg(MeiyouUser user);
    
    Double selMeijin(String uccount);//查询用户美金
    int updAddMeijin(double meijin,String uccount);//添加美金
    int updDelMeijin(double meijin,String uccount);//减少美金
}